import 'package:flutter/material.dart';

class PriceDetailPage extends StatefulWidget {
  @override
  _PriceDetailPageState createState() => _PriceDetailPageState();
}

class _PriceDetailPageState extends State<PriceDetailPage> {
  PreferredSize buildAppBarWidget() {
    return PreferredSize(
        child: AppBar(
          leading: IconButton(
              icon: Icon(
                Icons.chevron_left,
                size: 30.0,
                color: Color(0xffffffff),
              ),
              onPressed: () {
                Navigator.pop(context);
              }),
          backgroundColor: Color(0xfff26966),
          title: Text(
            "价格表",
            style: TextStyle(
                color: Color(
                  0xffffffff,
                ),
                fontSize: 18.0),
          ),
          centerTitle: true,
          elevation: 0.0,
        ),
        preferredSize:
            Size.fromHeight(MediaQuery.of(context).size.height * 0.065));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: buildAppBarWidget(),
      body: Center(
        child: Container(
          child: Text("价格表"),
        ),
      ),
    );
  }
}
